/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package YottaTron;

import java.awt.image.BufferedImage;
import java.io.IOException;

/**
 *
 * @author Cenda
 */
public class RotatingAnimatedGraphicsLoader extends AnimatedGraphicsLoader{

    public BufferedImage[][] rotatedAnimatedImages;

    public RotatingAnimatedGraphicsLoader(String fileName, int numImages) throws IOException {
        super(fileName, numImages);
        rotatedAnimatedImages = new BufferedImage[numImages][180];
        for (int i = 0; i < numImages; i++) {
            for (int j = 0; j < 180; j++) {
                rotatedAnimatedImages[i][j] = rotate(Math.toRadians(j*2),images[i]);

            }

        }

        images = null;
        
    }

    



}
